<?php

namespace App\Http\Controllers\V1\Api;

use App\Models\V1\Advert;
use Illuminate\Http\Request;

class IndexController extends BaseController
{
    /**
     * 首页
     * @param Request $request
     * @return \Illuminate\Http\JsonResponse
     */
    public function index(Request $request){
        $data['banner']=Advert::where('advert_place_id',1)->where('state',1)->get();
        $data['publicity_video']='';
        $data['case']=[
            [
                'thumb'=>'http://www.baidu.com',
                'title'=>'冰雪复古',
                'icon'=>"",
                'jump_url'=>"http://www.baidu.com"
            ]
        ];
        return ajax_output(200,"成功",$data);
    }
}
